import { ShopEntity } from "./ShopEntity";
import { UserEntity } from "./UserEntity";
import { BaseEntity } from "./baseEntity";
import { OrderOnGoodsEntity } from "./order-goods.entity";


export const OrderFields = `
id
createAt
updateAt
status
userId
payTime
shopId
`
export interface OrderEntity extends BaseEntity {
    status: string;
    userId: number;
    user?: UserEntity
    payTime: Date;
    shopId: number;
    shop: ShopEntity
    OrderOnGoods?: OrderOnGoodsEntity[]
}

